<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout/blank"><!-- layout文件路径-->
<head>
    <title>管理员列表</title>
</head>
<body>
<div layout:fragment="content">
    <div class="row">
    <div class="col-md-12">

        <!-- START SIMPLE DATATABLE -->
        <div class="panel panel-default">
            <div class="pull-right push-up-10">
                <div class="btn-group">
                    <button class="btn btn-primary" id="user-add-btn"><span class="fa fa-plus"></span> add</button>
                </div>
            </div>
            <div class="panel-body">
                <table class="table datatable_simple">
                    <thead>
                    <tr>
                        <th>用户名</th>
                        <th>状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="entity : ${list}">
                        <td th:text="${entity.username}"></td>
                        <td th:if="${entity.status=='00'}" th:text="启用"></td>
                        <td th:if="${entity.status=='01'}" th:text="禁用"></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- END SIMPLE DATATABLE -->
    </div>
</div>
</div>
</body>
</html>